#!/usr/bin/python3

USERNAME = 0
UID = 2

f = open('/etc/passwd', 'r')
users = f.read().splitlines()
f.close()

for i in users:
    u_infos = i.split(':')
    uid = int(u_infos[UID])
    if uid > 500 and uid < 2000:
        print('%-20s uid is %d' % (u_infos[USERNAME], uid))
